CC=gcc
CFLAGS=-Wall -Werror -Wextra -Os -fPIE
LD=ld
LDFLAGS=-melf_x86_64 -r --whole-archive
LPATH=-L.
ZIGFLAGS=-Drelease-fast
# ZIGFLAGS=-Drelease-small


.PHONY: clean socket

%.o: %.c
	$(CC) -o $@ -c $(CFLAGS) $^

socket:
	zig build-exe $(ZIGFLAGS) socket.zig 
clean:
	rm -f *.o *.a socket